package cn.bluemobi.app.controller.banner;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.bluemobi.app.core.controller.AppBaseController;
import cn.bluemobi.app.entity.output.Banner;
import cn.bluemobi.app.service.BannerService;
import cn.bluemobi.common.core.dto.ListDto;

import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;

/**
 * 
 * @author lvxh
 * 
 */
@Controller
@RequestMapping("/banner")
@Api(description = "轮播图", value = "banner")
public class BannerController extends AppBaseController {

	@Autowired
	private BannerService bannerService;

	@RequestMapping("/findBannerList")
	@ApiOperation(value = "查询轮播图", httpMethod = "POST")
	@ResponseBody
	public ListDto<Banner> findBannerList() {
		return bannerService.findBannerLsit();
	}
}
